package com.uy.cuantoconocesdeuruguay.utiles;

import android.content.Context;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;

public class SoundsUtils {
	public static void playSound(Context context, int soundId){
		MediaPlayer mp = MediaPlayer.create(context, soundId );
		mp.setOnCompletionListener(new OnCompletionListener() {					
			@Override
			public void onCompletion(MediaPlayer mp) {
				mp.release();
			} 
		});
        mp.start();
	}
}
